﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BGCMS.Models.Question>" %>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
         <!--   
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ID) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ID) %>
                <%: Html.ValidationMessageFor(model => model.ID) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.AskedBy) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.AskedBy) %>
                <%: Html.ValidationMessageFor(model => model.AskedBy) %>
            </div>
            
            <p>Sérfræðingur sem svarar spurningunni er:</p>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.AnsweredBy) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.AnsweredBy) %>
                <%: Html.ValidationMessageFor(model => model.AnsweredBy) %>
            </div>-->
            
          <!--  
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Title) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Title) %>
                <%: Html.ValidationMessageFor(model => model.Title) %>
            </div>-->

            <p>Hver er spurninginn?</p>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Question1) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Question1) %>
                <%: Html.ValidationMessageFor(model => model.Question1) %>
            </div>


            <p>Hvert er svarið við spurningunni? </p>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Answer) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Answer) %>
                <%: Html.ValidationMessageFor(model => model.Answer) %>
            </div>
            
         <!--   <div class="editor-label">
                <%: Html.LabelFor(model => model.IsPrivate) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.IsPrivate) %>
                <%: Html.ValidationMessageFor(model => model.IsPrivate) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.IsAnswered) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.IsAnswered) %>
                <%: Html.ValidationMessageFor(model => model.IsAnswered) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.IsPublished) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.IsPublished) %>
                <%: Html.ValidationMessageFor(model => model.IsPublished) %>
            </div>-->
            
            <p>
                <input type="submit" value="Senda inn spurningu" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>


